def back(code: int, data: any):
    back_dict = {'code': code, 'data': data}
    return back_dict


def success(data: any):
    return back(0, data)


def fail(message: str):
    back_dict = {'code': 500, 'message': message}
    return back_dict
